package www.utility;


import javax.servlet.http.HttpServletRequest;

/**
 * @FileName  		: CheckOsGate.java
 * @Project     	: EDUWILL_COMM
 * @Date         	: 2014. 8. 18. 
 * @작성자      	: 정지균
 * @변경이력 		: 2014. 8. 18.	/	안병훈
 * @프로그램 설명 	: PC / Mobile 접근 여부 체크
 */
public class CheckOsGate {
	
	/**
	 * @Method Name  	: 
	 * @Method 설명 	: 
	 * @param request
	 * @return
	 * @throws Exception
	 */
	public static String CheckOsGateGbn(HttpServletRequest request) throws Exception {
		String userAgent = request.getHeader("User-Agent");
		if(userAgent.indexOf("Mobile") != -1) {
			return "M";
		} else {
			return "P";
		}
	}
}
